package cn.liccshop.sys.constants;

/**
 * @author LiCC
 * @program LiCCShop
 * @description 常量类
 * @since 2019-04-02-23:31
 */
public class Constants {

    public static final String APP_NAME = "必要商城";
    /** 网关 **/
    public static final String ZHI_FU_BAO_GATEWAY_URL = "https://openapi.alipaydev.com/gateway.do";
    public static final String ZHI_FU_BAO_PAY_RETURN_URL = "http://localhost:8070/#/zhiFuBaoSuccRet";
    public static final String ZHI_FU_BAO_PAY_NOTIFY_URL = "http://localhost:8070/#/shopCart";
    public static final String ZHI_FU_BAO_APP_ID = "2016093000633459";
    public static final String ZHI_FU_BAO_PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDbJ53H06SSbaNvYwO1GoYCSc7SPf3UiB6JaUL3uIzXa0qn00yl7VySTjMB72dYSp+2i7HyK8pwJxzlRmOrzKgesx8DwcoHit7EQwH1bLquVrCdPbnldvGrzDyPjaVGrlu7AC0TVwIzSjXwAp/9leoWMREwzKbDJzvT5QaQNsnjj5dnbet85zl5SF/y0Yq5aVGA4OXUu+90vIataAfcKw24iDctrozXX0Zp02sYVnvIulCKdHqD13Af3elQlcYr4qrpuI7leLjcHbpWydkHe2Ov4Xxz8shQh2ZoZLk2Wli5a+Vurvvp2qal7EHnNVc3wlF8/oz3RIoUTnOr164zGJgfAgMBAAECggEBAJX0To7Lr0EOShVOT9wcsPNh42WSS1ugZByr7Mmp+pzv6h5Zg4nJl1z4qwg48qLENPJoNbM56YPCD5CGEG8eUy7ma2Nbt0xf5juuiemPo1DlOmXtNYTgVU6zKgEj76IkbdnPrggcsgG8VpnKggS3DnxuyI92iOjhsJs1i78j7hKJCi9Y/gpU5BzLnr1svFkt1IUZtn00xCT5C/8bgwRAtI/qT28vTM3+G9dnMGdSk+/AN+Rjmh35H+g+xXApJDHMDGhrV8ldD56MB+XEcDCTpDiS/XMCgHMJpOoUd2d5OlxJ1AwV/OGSr2xi5++7OaFnJfKT+EU99I8NJqeHUGFFrXECgYE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cCM0o18AKf/ZXqFjERMMymwyc70+UGkDbJ44+XZ23rfOc5eUhf8tGKuWlRgODl1LvvdLyGrWgH3CsNuIg3La6M119GadNrGFZ7yLpQinR6g9dwH93pUJXGK+Kq6biO5Xi43B26VsnZB3tjr+F8c/LIUIdmaGS5NlpYuWvlbq776dqmpexB5zVXN8JRfP6M90SKFE5zq9euMxiYHwIDAQAB";
    public static final String ZHI_FU_BAO_PUBILC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAllWIxOuuVeYe2iWpDlpyn1p8IQaY/dOVkPDr8m3ZgthZZ3TUGOvSeL/wAAKAD9Mhzo8XDY6dRdAxwQQ1miM+gcKyAQFfiVnyvhKZzQl7tYfpUBCrKWjrW7vQLm5mo4CBFS4ZbxysU+T7ZXNAd47MxrIajgUKobmeiKPx2GHCwgO0swFuEKhR64DaS05/+U24NCDPHly8b86dE+wehHzzxfqBHWaTGglCZ7W++KRb1zJyP6vJ2SZ9m5DdnlF6HEsDgPQlSVBEvm4mkuZvI8Xb5NXqnqmZ7PI7l9HEZDNflApjferTaqVzx/qcijlgM0odHgkbHkGWTSaa8cVuHtBdDQIDAQAB";

    /**
     * redis缓存操作所需常量 start
     *
     * 登陆token前缀
     */
    public static final String TOKEN_PREFIX = "token.";
    /** 用户信息key前缀 **/
    public static final String USER_PREFIX = "user.";
    /** 保存token 3天 单位：秒 **/
    public static final int USER_CACHE_TIME = 604800;
    /** 短信验证码key缓存前缀 以VERIFYCODE_PREFIX + mobile形式命名 **/
    public static final String VERIFYCODE_PREFIX = "verify.code.";
    /** 短信验证请求的IP前缀 **/
    public static final String REQUEST_IP_PREFIX = "ip.";
    /** 短信请求次数（同一手机号、IP） 1天 **/
    public static final int ABOUT_CODE_CACHE_TIME = 86400;
    /** 登陆注册短信验证码存活时间 **/
    public static final int VERCODE_CACHE_TIME = 3600;
    /** redis缓存操作所需常量---end **/

    /** ActiveMQ start*/
    /** 发送短信验证码的消息队列名 **/
    public static final String SMS_QUEUE = "sms.queue";
    /** ActiveMQ end */

    /**
     * 异常代码 start
     *
     * 成功
     */
    public static final int OK = 1;
    /** 失败 **/
    public static final int FAIL = 1124;
    /** 未登录 **/
    public static final int UNAUTHEN = 4401;
    /** 逻辑正常处理，如用户登录但该用户不存在 **/
    public static final int SERVICE_FAIL = 1127;
    /** 参数异常 **/
    public static final int INVALID_PARM = 1125;
    /** 未授权，拒绝访问 **/
    public static final int UNAUTHZ = 4403;
    /** 商品卖完 **/
    public static final int GOODS_SOLD_OUT = 3013;

    /** session超时退出了登录 **/
    public static final int SESSION_TIMOUT = 4433;
    /** 系统异常 **/
    public static final int SYS_ERROR = 5500;
    /** 异常代码--end **/


    /** 客户端 header中 token 的 key 的名称 **/
    public static final String REQUEST_TOKEN_KEY = "user-token";
    /** AES加密用的KEY **/
    public static final String AES_KEY = "s123s5l49sd086f7";
    /** 管理员用户添加没有密码默认密码 **/
    public static final String PASSWORD_OF_ADMIN = "licc123A";
    /** 管理员用户添加默认头像地址 **/
    public static final String PHOTO_OF_ADMIN = "http://lccabc.cn/SHOP_39da0caa5486f9e9b880c4de65ab866d";

    /** 七牛云配置开始 **/
    public static final String QINIU_ACCESSKEY = "Vnk8r-oLeDYC79q2J9TMngTfVU0trScYibo_NBtw";
    public static final String QINIU_SECRETKEY = "fvbSEG0S__AA2tiD-XV8giXTJkDGGQKYONmEqG2W";
    public static final String QINIU_BUCKET = "lccabc";
    public static final String QINIU_PREFIX_NAME = "SHOP_";
    /** 七牛云配置结束 */

    /** 短信验证 start */
    public static final String MDSMS_ACCOUNT_SID = "660b7a2472204edfb61f7327cd66df89";
    public static final String MDSMS_AUTH_TOKEN = "305b6c851da54e93aaffd6376f87afe9";
    public static final String MDSMS_REST_URL = "https://api.miaodiyun.com/20150822";
    public static final String MDSMS_VERCODE_TPLID = "388721342";
    /** 短信验证 end */

    /** 高德API开始 **/
    public static final String GAODE_API_KEY = "1d99ebb9bac437a07f0122ae132a8530";
    public static final String GAODE_API_URL = "https://restapi.amap.com/v3/config/district";
    /** 高德API结束 **/
    /**
     * 图片类型--开始
     */
    /** 前台首页轮播图 **/
    public static final Integer PHOTO_TYPE_HOME = 20;
    /** 图片类型--开始 **/

    /** 商品状态---start **/
    /** 在售 **/
    public static final Integer GOODS_STATUS_10 = 10;
    /**待提交 **/
    public static final Integer GOODS_STATUS_15 = 15;
    /** 待初审 **/
    public static final Integer GOODS_STATUS_20 = 20;
    /** 驳回（一） **/
    public static final Integer GOODS_STATUS_30 = 30;
    /** 删除（初审） **/
    public static final Integer GOODS_STATUS_40 = 40;
    /** 待补充 **/
    public static final Integer GOODS_STATUS_50 = 50;
    /** 待二审 **/
    public static final Integer GOODS_STATUS_60 = 60;
    /** 驳回（二） **/
    public static final Integer GOODS_STATUS_70 = 70;
    /** 删除（补充） **/
    public static final Integer GOODS_STATUS_80 = 80;
    /**待上市 **/
    public static final Integer GOODS_STATUS_90 = 90;
    /**删除（上市前 **/
    public static final Integer GOODS_STATUS_95 = 95;
    /**商品状态---end **/

    /** 订单状态---开始 **/
    /** 成功 **/
    public static  final Integer ORDER_STATUS_SUCCESS = 10;
    /** 待支付 **/
    public static  final Integer ORDER_STATUS_PAY = 20;
    /** 待发货 **/
    public static  final Integer ORDER_STATUS_DELIVER = 30;
    /** 待收货 **/
    public static  final Integer ORDER_STATUS_RECEIVE = 40;
    /** 带评论 **/
    public static  final Integer ORDER_STATUS_COMMENT = 50;
    /** 取消 **/
    public static  final Integer ORDER_STATUS_CANCEL = 60;
    /** 申请退货 **/
    public static  final Integer ORDER_STATUS_APPLAY_RETURN = 70;
    /** 订单状态---结束 **/

    /** 用户信息添加默认信息---开始 **/
    /** 前台用户默认头像 **/
    public static final String SHOP_USER_HEADER_IMG = "http://lccabc.cn/SHOP_39da0caa5486f9e9b880c4de65ab866d";
    public static final Integer SHOP_USER_SEX = 0;
    public static final String SHOP_USER_AGE = "2000-01-01 00:00:00";
    /** 用户信息添加默认信息---结束 **/

    /** 商品redis存储前缀---开始 **/
    /** 热销商品前缀 **/
    public static final String GOODS_HOT = "goods-hot";
    /** 热销商品过期时间 **/
    public static final Integer GOODS_HOTCACHE_TIME = 2592000;
    /** 月商品总销量前缀 **/
    public static final String GOODS_SALES_VOLUME = "goods-sales-volume";
    /** 月总销售额前缀 **/
    public static final String GOODS_SALES_PRICE = "goods-sales-price";
    /** 月订单下单量前缀 **/
    public static final String ORDER_SALES_VOLUME = "order-sales-volume";
    /** 月分类销量前缀 **/
    public static final String GOODS_CATEGORY_SALES = "goods-category-sales";
    /** 订单支付倒计时前缀 **/
    public static final String ORDER_PAY_COUNT_DOWN = "pay-count-down";
    /** 订单支付倒计时 **/
    public static final Integer ORDER_PAY_COUNT_DOWN_TIME = 3600;
    /** 商品redis存储前缀---结束 **/
    /** 交易记录信息---开始 **/
    /** 完成 **/
    public static final Integer TRANSACTIOON_TYPE_SUCC = 1;
    /** 申请退款 **/
    public static final Integer TRANSACTIOON_TYPE_APPLAY_RETURN = 2;
    /** 退款完成 **/
    public static final Integer TRANSACTIOON_TYPE_RETURN = 3;
    /** 交易记录信息---结束 **/
}
